import request from 'umi-request';
export async function queryRule(params) {
  return request('/api/matMaterialPurchaseRequests/selectByPage', {
    params,
  });
}

export async function approve(params) {
  return request('/api/matMaterialPurchaseRequests/approve', {
    method: 'POST',
    data: { ...params },
  });
}
